#!/bin/bash
# Created Time:    2017-04-19 09:52:50
# Modified Time:   2017-04-19 13:26:13
#set -e # 这告诉bash一但有任何一个语句返回非真的值，则退出bash。
RESTART=$1

cd /var/lib/ambari-server/resources/stacks/HDP/2.5/services/WEBHELLO
git pull

if [ $1 ]; then
    ambari-server restart
fi